package user;

public abstract class User {
    private String name;
    private int UserID;
    private String Role;
    //getset
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getUserID() {
        return UserID;
    }

    public void setUserID(int userID) {
        UserID = userID;
    }

    public String getRole() {
        return Role;
    }

    public void setRole(String role) {
        Role = role;
    }

    //构造方法
    public User(String name, int userID, String role) {
        this.name = name;
        UserID = userID;
        Role = role;
    }

    //toString
    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", UserID='" + UserID + '\'' +
                ", Role='" + Role + '\'' +
                '}';
    }

    //菜单方法
    public abstract int display();
}
